<p>Dear Reservation/Sales Department</p>

<p>Please arrange accommodation for this booking as follow:</p>
<p> - Guest's name:<strong> <?php echo mb_strtoupper($booking['Customer']['full_name']) ?> (<?php echo $booking['Customer']['telephone'] ?>)</strong><br />
- ALO code: <?php echo $booking['Booking']['hotel_booking_code'] ? $booking['Booking']['hotel_booking_code'] : $booking['Booking']['alo_booking_code']  ?></p>

<table style="border-collapse: collapse; border: medium;">
<tbody>
    <tr>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><b>Room</b></p></td>
         <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><b>Type</b></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><strong>Qty</strong></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><b>Check in</b></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><b>Check out</b></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><b>Night(s)</b></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><strong>Contract Rate </strong></p></td>

        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><b>Thành tiền</b></p></td>
    </tr>
    <?php foreach ($booking['BookingDetail'] as $booking_detail): ?>
    <?php if (!preg_match('/voucher|promotion|khuyến mãi/', mb_strtolower($booking_detail['type'] . ' ' . $booking_detail['quality']))): ?>
    <tr>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><?php echo $booking_detail['type'] ?></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><?php echo $booking_detail['quality'] ?></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><?php echo $booking_detail['quantity'] ?></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><?php echo preg_match('/voucher|promotion|khuyến mãi/', mb_strtolower($booking_detail['type'] . ' ' . $booking_detail['quality'])) ? '' : date('d/m/y', strtotime($booking_detail['checkin_date'])) ?></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><?php echo preg_match('/voucher|promotion|khuyến mãi/', mb_strtolower($booking_detail['type'] . ' ' . $booking_detail['quality'])) ? '' : date('d/m/y', strtotime($booking_detail['checkout_date'])) ?></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><?php echo preg_match('/voucher|promotion|khuyến mãi/', mb_strtolower($booking_detail['type'] . ' ' . $booking_detail['quality'])) ? '' : $booking_detail['days'] ?></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><?php echo number_format($booking_detail['original_cost'], 1, '.', ',') ?></p></td>
        <td style=" border-bottom: 1pt solid black; padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><?php echo number_format($booking_detail['original_price'], 1, '.', ',') ?></p></td>
    </tr>
    <?php endif; ?>
    <?php endforeach; ?>
    <tr>
    	<td colspan="6" style=" border-bottom: 1pt solid black; background: none repeat scroll 0% 0% rgb(255, 246, 205); padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><b>Tổng số tiền thanh toán</b></p></td>
    	<td style=" border-bottom: 1pt solid black; background: none repeat scroll 0% 0% rgb(255, 246, 205); padding: 0in 6.0pt;"><p style="color: rgb(255, 102,0); text-align: center;"><b>USD</b></p></td>
        <td style=" border-bottom: 1pt solid black; background: none repeat scroll 0% 0% rgb(255, 246, 205); padding: 0in 6.0pt;"><p style="color: rgb(255, 102,0); text-align: center;"><b><?php echo $booking['Booking']['currency'] == 'USD' ? number_format($total_original_price_usd, 1, '.', ',') : '-' ?></b></p></td>
    </tr>
    <tr>
    	<td colspan="6" style=" border-bottom: 1pt solid black; background: none repeat scroll 0% 0% rgb(255, 246, 205); padding: 0in 6.0pt;"><p style="margin-top: 10pt; text-align: center;"><b>Tỉ giá hotel: <?php echo number_format($booking['Booking']['hotel_exchange_rate'], 1, '.', ',') ?></b></p></td>
    	<td style=" border-bottom: 1pt solid black; background: none repeat scroll 0% 0% rgb(255, 246, 205); padding: 0in 6.0pt;"><p style="color: rgb(255, 102,0); text-align: center;"><b>VND</b></p></td>
        <td style=" border-bottom: 1pt solid black; background: none repeat scroll 0% 0% rgb(255, 246, 205); padding: 0in 6.0pt;"> <p style="color: rgb(255, 102,0); text-align: center;"><b><?php echo number_format($total_original_price_vnd, 1, '.', ',') ?></b></p></td>
    </tr>
</tbody>
</table>

<p><strong>- Payment:</strong><br />
+ ALObooking pay  before check in: <?php echo number_format($booking['Booking']['hotel_prepaid_amount'], 1, '.', ',') ?><br />
+ Guest pay at resort/hotel upon check out: <?php echo number_format($booking['Booking']['hotel_fullcharge_amount'], 1, '.', ',') ?></p>
<p>Including: <?php echo $booking['Booking']['includes'] ?></p>
<p>Note:</p>
<p>Please confirm us as soon as possible</p>
<h3>----------------------------------------</h3>
<p>Book by: <?php echo mb_strtoupper($booking['User']['fullname']) ?><br/>
    Date: <?php echo date('d/m/Y') ?></p>

<table cellpadding="0" cellspacing="0">
  <tr>
    <td width="230" style="padding:5px 10px 0px 10px; background:#8971aa; text-align:center; vertical-align:middle;"><a href="http://alobooking.net"><img src="http://alobooking.net/assets/templates/alobooking/images/logo.gif" alt="logo"style="border:none" /></a></td>
    <td style="padding:5px 10px 5px 10px; background:#fdcf0a;"> <p style="font-family:Arial, Helvetica, sans-serif; line-height:20px; font-size:12px"><strong>T: </strong>(08) 38 907190 - <strong>F: </strong>(08) 38 407172<br />
 <strong>W:</strong> <a href="http://alobooking.net">www.alobooking.net</a><br />
 <strong>Chat:</strong> YH!: alobooking - Skype: alobooking</p>

    </td>
  </tr>
</table>

<p>&nbsp;</p>